class CustomerVisibleToUser < ActiveRecord::Base

  attr_protected []
  
  belongs_to :customer
  belongs_to :user
  
  validates :customer_id,    
    :uniqueness => {
      :scope => :user_id
    }
    
  default_scope lambda { where( :enterprise_id => Enterprise.current_id ) }
end
